#pragma once


class StaticMesh :
	public IDrawable
{
public:
	StaticMesh(const D3DXVECTOR3& position, const D3DXVECTOR3& size);
	~StaticMesh(void);

	void render();

	void setTexture(const std::string& file);

	void fromObjFile(const std::string& file, int firstIndex);

	void setPosition(const D3DXVECTOR3& position);
	D3DXVECTOR3 getPosition();

	static void toLua();

protected:
	LPDIRECT3DINDEXBUFFER9 mIndexBuffer;
	unsigned int mNumVertices, mNumIndices;
};

